package com.yst.feign1.aspect;

import com.alibaba.fastjson.JSONObject;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class AspectDemo {

    @Around("execution(* com.yst.feign1.feign.*Feign(..))")
    public Object handle(ProceedingJoinPoint pjp) throws Throwable {
        Object result = pjp.proceed();
        System.out.println("----------------------" + JSONObject.toJSONString(result));
        return result;
    }
}
